package com.example.stukotlin

fun main() {
    val text by lazy {
        print("bylazy")
        "123456"
    }
    var b = BaseImpl("baseImpl")
    Derived(b).print()
    print(text)
}

interface Base {
    fun print()
}

class BaseImpl(private val x: String) : Base {
    override fun print()= print(x)
}

class Derived(private val b:Base):Base by b